We called such function async but we didn't awaited for the
checkInvocation result in the proper way.
So on failure the shell would report an unhandled promise rejection.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2258>
invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded]));
}
- ScreenTransitionAsync(params, invocation) {
+ async ScreenTransitionAsync(params, invocation) {
try {
- this._senderChecker.checkInvocation(invocation);
+ await this._senderChecker.checkInvocation(invocation);
} catch (e) {
invocation.return_gerror(e);
return;